feat: flexible canister http outcalls#254
Draft
mraszyk wants to merge 1 commit into
Draft
Conversation
|
🤖 Here's your preview: https://keluh-vqaaa-aaaam-ai7wa-cai.icp0.io |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
flexible_http_requestmanagement canister method: a variant ofhttp_requestwhere nodes return their individual HTTP responses to the caller instead of reaching consensus.Supports configurable replication via an optional replication argument (
min_responses,max_responses,total_requests). Returns a vector of responses or a structured error with a global error code and per-node resource reports.pricing_versionfield onhttp_request: adds an optionalpricing_versionfield (1or2). Version 1 is now deprecated; version 2 ignoresmax_response_bytesand refunds unused cycles based on actual execution cost.ic0.cost_http_request_v2System API: replaces the deprecatedic0.cost_http_request. Accepts a Candid-encoded parameter record to compute the cost of an outcall at pricing version2.ic0.subnet_self_node_countSystem API: returns the number of nodes currently on the subnet. Useful for callers computing valid replication bounds forflexible_http_request.